<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<style type="text/css">
body,table,hr,form,input,select {
	color: black;
	background: silver;
	font-family: Verdana, sans-serif;
	font-size: x-small;
}
</style>

<title>Страница поиска</title>
</head>
<h1 align="center">Страница поиска</h1>
<body>
	<center>
		<table cellspacing="0" cellpadding="6">
			<caption>
				<b>Панель действий</b>
			</caption>
			<tr>
				<td>
					<form action="showAll.do" accept-charset="UTF-8">
						<input type="submit" value="Показать всех студентов">
					</form></td>
			</tr>
			<tr>
				<td>
					<form action="findByTask.do" accept-charset="UTF-8" method="post">
						<SELECT NAME="taskID">
							<OPTION disabled selected="selected">Выберите задание</OPTION>
							<c:forEach var="task" items="${tasks}">
								<OPTION VALUE="${task.id}">
									<c:out value="${task.name}" />
								</OPTION>
							</c:forEach>
						</SELECT><br> <br> <input type="submit"
							value="Показать студентов">
					</form></td>
			</tr>
		</table>
		<c:out value="${error}"></c:out>
	</center>
</body>
</html>